<!DOCTYPE html>
<html>
	<head>
	<meta charset="utf-8">
	<title>Webview Example</title>
	<script type="text/javascript">
var nw=null;
// H5 plus事件处理
function plusReady(){
}
if(window.plus){
	plusReady();
}else{
	document.addEventListener("plusready",plusReady,false);
}

// 监听Webview窗口页面加载完成事件
function eventTest() {
	// 打开新窗口
	nw=plus.webview.create( "", "", {top:"46px",bottom:"0px"} );
	nw.addEventListener( "loaded", function(e){
		console.log( "Loaded: "+e.target.getURL() );
	}, false );
	nw.show(); // 显示窗口
}
	</script>
	</head>
	<body>
		Webview窗口页面加载完成事件
		<button onclick="eventTest()">start</button>
		<button onclick="nw.loadURL('http://m.csdn.net')">loaded</button>
	</body>
</html>